function showCsInviteInfo(){    
	//家长邀请记录
	$("#csInviteInfo").jqGrid({                
		url:global_url+global_urijs+'cmadd_searchInviteParentList'+global_suffix+"?cid="+global_cid,                
		datatype:"json",                
		mtype:'GET', 
		height:'250',
		width:'760',
		colNames:['学生姓名','关系','家长姓名','手机号码','添加日期','ipid'],                
		colModel:[                    
		{name:'name_student',index:'name_student',width:120,align:'center'},                    
		{name:'relation',index:'relation',width:120,align:'center'},                    
		{name:'pname',index:'pname',width:120,align:'center', sortable:false},
		{name:'phone',index:'phone',width:120,align:'center', sortable:false},
		{name:'ctime_str',index:'ctime_str',width:120,align:'center', sortable:false},
		{name:'ipid',index:'ipid',hidden:true}
		],
		//autowidth:true,
		jsonReader: {
			root:"inviteParentList",
			page: "page",
			total: "page_count",
			records : "count",
			repeatitems: false
		},
		pager: jQuery('#csInvitePage'),
		prmNames : {page:"page",sort: "sort"},
		rowNum: 10,
		//rowList: [10, 20, 30],
		sortname: 'ctime_str',
		hidegrid: false,
		sortorder: 'desc',
		viewrecords: true,
		caption: '',
		gridComplete:function(){
			var ids=jQuery("#csInviteInfo").jqGrid('getDataIDs');
			for(var i=0; i<ids.length; i++){
				var id=ids[i];   
				
				jQuery("#csInviteInfo").jqGrid('setRowData', ids[i]);
			}
		}
	}).navGrid("#csInvitePage", { edit: false, add: false, del: false, search: false });
}	
	
	

function showCtInviteInfo(){
	//教师邀请记录
	$("#ctInviteInfo").jqGrid({                
		url:global_url+global_urijs+'cmadd_searchInviteTeacherList'+global_suffix+"?cid="+global_cid,                
		datatype:"json",                
		mtype:'GET', 
		height:'250',
		width:'760',
		colNames:['姓名','职务','手机号码','添加日期','itid'],                
		colModel:[                    
		{name:'tname',index:'tname',width:120,align:'center'},                    
		{name:'gname',index:'gname',width:120,align:'center'},                    
		{name:'phone',index:'phone',width:120, sortable:false,align:'center'},
		{name:'ctime_str',index:'ctime_str',width:120,align:'center', sortable:false},
		{name:'itid',index:'itid',hidden:true}    
		],
		//autowidth:true,
		jsonReader: {
			root:"inviteTeacherList",
			page: "page",
			total: "page_count",
			records : "count",
			repeatitems: false
		},
		pager: jQuery('#ctInvitePage'),
		prmNames : {page:"page",sort: "sort"},
		rowNum: 10,
		//rowList: [10, 20, 30],
		sortname: 'ctime_str',
		hidegrid: false,
		sortorder: 'desc',
		viewrecords: true,
		caption: '',
		gridComplete:function(){
			var ids=jQuery("#ctInviteInfo").jqGrid('getDataIDs');
			for(var i=0; i<ids.length; i++){
				var id=ids[i];   
				
				jQuery("#ctInviteInfo").jqGrid('setRowData', ids[i]);
			}
		}
	}).navGrid("#ctInvitePage", { edit: false, add: false, del: false, search: false });
}



